/**
 * Runs when the app starts
 * Calls the viewport to get things started
**/

Ext.regApplication({
    name: 'app',
    launch: function () {
        this.mainLaunch();
    },
    mainLaunch: function () {

         var SplashScreen = new Ext.Panel({
            fullscreen: true,
            //html: '<div id="spiralGif" style="position: relative; left: 50%; top: 20%;"><img src="img/loading-spiral.gif" /></div>',
            style: {
                'background-image': 'url("../lib/resources/img/lunchpad2.png")',
                'background-repeat': 'no-repeat',
                'background-position': 'center',

                'background-color': 'black'

            }
        });
        app.views.viewport = SplashScreen;

        setTimeout(
            function () {
               
                app.views.viewport = new app.views.Viewport();
                },
                2500
            );
        //this.views.viewport = new this.views.Viewport();
    }
});